package org.model

import java.util.Date;

class Update {

	static auditable = true

	String guid
	Date lastUpdated
	Date dateCreated
	String dueDate
	String accountGuid

	static hasMany = [updateElements:UpdateElements]
	String status



	static constraints = {
		status nullable: false, inList:[
			"In Progress",
			"Complete"
		]
		guid nullable:true, unique: true
	}

	String toString() {
		return id
	}
}

